/**
 * Copyright (c) 2006 RiseSoft Co.,Ltd  
 * $Header$
 */
package cn.newtest.bi.collection.formula.antlr;

import java.util.ArrayList;
import java.util.List;

import org.antlr.runtime.Parser;
import org.antlr.runtime.RecognitionException;
import org.antlr.runtime.RecognizerSharedState;
import org.antlr.runtime.TokenStream;

/**
 *
 *
 * @author <a href="mailto: chenjian@risesoft.net">陈健</a>
 * @version $Revision$
 * 
 */
public class RiseAntlrParser extends Parser {

	/**
	 * @param arg0
	 */
	public RiseAntlrParser(TokenStream arg0) {
		super(arg0);
	}
	
	public RiseAntlrParser(TokenStream input, RecognizerSharedState state) {
		super(input,state); 
    }
	
	public List errorMessages = new ArrayList();
	
	public String getErrorMessage(RecognitionException e,String[] tokenNames){
		String msg = null;
	    msg = AntlrExceptionTranslator.translateParserExceptionMessage(e, tokenNames);
	    errorMessages.add(msg);
		return msg;
	}

}
